/**
 * Created by bing on 2018/1/24.
 */
package com.wxb.order.service.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * describe:
 *
 * @author : 王校兵
 * @version : v1.0
 * @time : 2018-01-24 15:35
 */
@RestController
public class DemoController {

    @GetMapping("/demo")
    @PreAuthorize("hasAuthority('query-demo')")
    public String getDemo(){
        return "good";
    }

    @GetMapping("/hello")
    public String getDemo1(){
        return "good";
    }

}
